cmake_minimum_required(VERSION 3.12)
project(demo_cpp_http)

set(CMAKE_CXX_STANDARD 14)

# 头文件路径
set(INC_DIR /home/grant/CLionProjects/demo-c-http)
# 库文件路径
set(LIB_DIR /home/grant/CLionProjects/demo-c-http/cmake-build-debug)
#添加头文件目录
include_directories(${INC_DIR})
#添加需要链接的库文件目录
link_directories(${LIB_DIR})
#添加需要链接的库文件路径
link_libraries(demo_c_http)


add_executable(demo_cpp_http main.cpp )

#动态库隐式调用(编译时装入,默认优先链接动态库)
#target_link_libraries(demo_cpp_http demo_c_http)

#显式指定链接静态库
#target_link_libraries(demo_cpp_http libdemo_c_http.a)
#显式指定链接动态库
target_link_libraries(demo_cpp_http libdemo_c_http.so)
